﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using Common.Utils;
using Gao.Poker.Domain;

namespace Gao.Poker.DataPrivader
{
    public class PokerInitializer : DropCreateDatabaseIfModelChanges<PokerDbContext>
    {
        protected override void Seed(PokerDbContext context)
        {
            context.User.Add(new User() { UserName = "admin", Password = EncryptHelper.Md5("admin") });
            context.SaveChanges();
        }
    }
}
